package com.xjtu.platform.security.register.Impl;

import com.xjtu.platform.security.register.RegisteDto;
import com.xjtu.platform.security.register.RegisteService;
import com.xjtu.platform.security.register.dao.RegisteDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional
public class RegisteServiceImpl implements RegisteService {

    @Resource
    private RegisteDao registeDao;

    @Override
    public boolean insertUser(RegisteDto registeDto) {
        try {
            registeDao.insert(registeDto);
            return true;
        }catch (Exception e){
            e.printStackTrace();
            return false;
        }
    }
}
